#if !defined(AFX_CAxisLimitSensor_H__5BCB7ED3_2484_11D4_B8E1_00AA0053860C__INCLUDED_)
#define AFX_CAxisLimitSensor_H__5BCB7ED3_2484_11D4_B8E1_00AA0053860C__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// CAxisLimitSensor.h : header file
//
#include "Util\MinButton.h"
#include "Util\MinLabel.h"

/////////////////////////////////////////////////////////////////////////////
// CAxisLimitSensor dialog
class IMMC;

class CAxisLimitSensor : public CDialog
{
// Construction
public:
	CAxisLimitSensor(IMMC* pMMC, CWnd* pParent = NULL);   // standard constructor

private:
	IMMC* m_lnkMMC;

	int m_nSelectBD;

	BOOL m_flgTeachingTimerInitFlag;
	CMinLabel	m_sNegLimit[8];
	CMinLabel	m_sHomeLimit[8];
	CMinLabel	m_sPosLimit[8];

	CMinButton m_bAxis[8];

	BOOL m_flgOldNegLimit[8];
	BOOL m_flgOldHome[8];
	BOOL m_flgOldPosLimit[8];

	BOOL m_flgNegLimit[8];
	BOOL m_flgHome[8];
	BOOL m_flgPosLimit[8];

	void AxisNameDisplay();
	void InitDisplay();
	
// Dialog Data
	//{{AFX_DATA(CAxisLimitSensor)
	enum { IDD = IDD_AXIS_SENSOR };
	CMinButton	m_bPrev;
	CMinButton	m_bNext;
	CMinButton	m_bPosLimit;
	CMinButton	m_bNegLimit;
	CMinButton	m_bHomeLimit;
	CMinButton	m_bCancel;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CAxisLimitSensor)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CAxisLimitSensor)
	virtual void OnCancel();
	virtual BOOL OnInitDialog();
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnDestroy();
	afx_msg void OnPrev();
	afx_msg void OnNext();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_CAxisLimitSensor_H__5BCB7ED3_2484_11D4_B8E1_00AA0053860C__INCLUDED_)
